// https://www.bilibili.com/video/BV1XL4y1L7j3?spm_id_from=333.337.search-card.all.click
import Cookies from 'js-cookie';

const u_Token='token';

// 获取token
export function getToken(){
  return Cookie.get(u_Token);
}

// 设置token
export function setToken(token){
  return Cookies.set(u_Token,token);
}

// 移除token
export function removeToken(){
  return Cookies.remove(u_Token);
}

export default {
    getToken,
    setToken,
    removeToken
}
